#include "udpserver.hpp"
#include <memory>

void Tip()
{
    std::cout << "./server port" << std::endl;
}

int main(int argc, char* argv[]) //./server port
{
    if(argc != 2)
    {
        Tip();
        exit(0);
    }
    uint16_t port = std::atoi(argv[1]);

    std::unique_ptr<Server> server(new Server(port));
    server->Init();
    server->Run();

    return 0;
}